/*
 * game.h
 *
 *  Copyright (C) 2012  Pierre Beaucamp
 *
 *	This file is part of the Program CRAFTING
 *
 *  CRAFTING is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  CRAFTING is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with CRAFTING.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef GAME_H_
#define GAME_H_

#include	<iostream>
#include 	"SDL/SDL.h"
#include 	"SDL/SDL_opengl.h"
#include 	"events.h"

class game : public events {

private:

	bool	running;

public:

	game				();
	int 	execute		();
	bool	init		();
	void	onEvents	(SDL_Event* event);
	void	loop		();
	void	render		();
	void	cleanUp		();
	void	onExit		();

};

#endif /* GAME_H_ */
